using System;
using System.Data;
using BeeldBank.Data.Sql;

namespace BeeldBank.Data
{
	/// <summary>
	/// Provides database independant methods for Setting.
	/// </summary>
	public class Setting : SettingBase
	{
		//BEELDBANK_CUSTOM_SETTING_GETNEWFILENUMBER

		public static int GetNewFileNumber () {
			int returnValue = -1;
			DataTable dt;
			dt = Open( "BEELDBANK_CUSTOM_SETTING_GETNEWFILENUMBER", null );
			if ( dt.Rows.Count != 0 ) {
				returnValue = Convert.ToInt32( dt.Rows[ 0 ][ 0 ].ToString() );
			}
			return returnValue;
		}
			
	}
}
